<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %> <!-- 注意这种方式引入Struts2标签 -->

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>我的Struts2Demo测试</title>

  </head>
  
  <body>
  	${msg } <br/>
<%--   	<s:property value="msg"/> --%>
<%--   	<s:property value="msg"/> --%>
<%--   	<s:form action="login.action" method="post"> <!-- 因为使用了Struts2标签，所以不能用jsp1.0干活 --> --%>
<%--   		<s:textfield key="msg" label="请输入消息"></s:textfield> --%>
<%--   		<s:submit value="发送" ></s:submit> --%>
<%--   	</s:form> --%>
	
  	<form action="<%=basePath%>login.action" method="post">
  		请输入消息<input type="text" name="msg"><br/>
  		<input type="submit" value="发送"/> 
  	</form>
  </body>
</html>
